Automated GUI Refactoring and Test Script Repair (Position Paper)
نویسندگان
چکیده
To improve the overall user experience, graphical user interfaces (GUIs) of successful software systems evolve continuously. While the evolution is beneficial for end users, it creates several problems for developers and testers. Developers need to manually change the GUI code. Testers need to manually inspect and repair highly fragile test scripts. This is time-consuming and error-prone. The state-of-the-art tools for automatic GUI test repair use a black-box approach: they try to infer the changes between two GUI versions and then apply these changes to the test scripts. However, inferring these changes is challenging. We propose a white-box approach where the GUI changes are automated and knowledge about them is reused to repair the test cases appropriately. We use GUI refactorings as a means to encode the evolution of the GUIs. We envision a smart IDE that will record these refactorings precisely as they happen and will use them to change the GUI code and to repair test cases. We illustrate our approach through an example, discuss challenges that should be overcome to turn our vision into reality, and present a research agenda to address these challenges.
منابع مشابه
SITAR: GUI Test Script Repair
System testing of a GUI-based application requires that test cases, consisting of sequences of user actions/events, be executed and the software’s output be verified. To enable automated re-testing, such test cases are increasingly being coded as low-level test scripts, to be replayed automatically using test harnesses. Whenever the GUI changes—widgets get moved around, windows get merged—some ...
متن کاملRefactoringScript: A Script and Its Processor for Composite Refactoring
Refactoring is widely recognized as a method to improve the internal qualities of source code. However, manual refactoring is time-consuming and error-prone. Consequently, many tools to support automated refactoring have been suggested, but most support only unit and simple refactoring, making it difficult to perform composite refactoring (e.g., introducing a design pattern) where a refactoring...
متن کاملA Model for GUI Automated Testing Framework in Software System
A pervasive method for GUI testing is the Capture and Playback (CP) technique. This commonly used technique cannot be used until an Application Under Test (AUT) is completely developed. In this paper we propose a specification driven approach to test GUI-Based java programs as an alternative to the CP technique. We introduce a GUI-event test specification language based on Java Script from whic...
متن کاملGUI Testing Using Computer Vision Citation
Testing a GUI’s visual behavior typically requires human testers to interact with the GUI and to observe whether the expected results of interaction are presented. This paper presents a new approach to GUI testing using computer vision for testers to automate their tasks. Testers can write a visual test script that uses images to specify which GUI components to interact with and what visual fee...
متن کاملRegression testing of gui event interactions pdf
Production 20, 4, regression testing of GUIs has remained a largely unexplored. All possible interactions among the events in a component, just like a control.Regression Testing of GUI Event Interactions. In this paper White describes how automated regression tests can be generated to test both.regression testing, some test reading a pdf cases from the original GUI are usable and others are. Th...
متن کامل